package cn.young.javalearning.designpattern.factorypattern.f_factorymethod;

import cn.young.javalearning.designpattern.factorypattern.bean.f_bean.Apple;
import cn.young.javalearning.designpattern.factorypattern.bean.f_bean.Fruit;

/**
 * 工厂方法
 *
 */
public class AppleMethodFactoryBean implements FruitMethodFactory {

    @Override
    public Fruit produceFruit(Class clazz) {
        return new Apple();
    }
}
